//
//  File.swift
//
//
//  Created by 李加建 on 2022/11/17.
//

import Foundation
import UIKit

public class CycleScrollViewCell: UICollectionViewCell {
    override public init(frame: CGRect) {
        super.init(frame: frame)
        setup()
    }

    @available(*, unavailable)
    public required init?(coder _: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    public lazy var imageView: UIImageView = {
        let lazy = UIImageView(frame: .zero)
        lazy.clipsToBounds = true
        lazy.contentMode = .scaleAspectFill
        return lazy
    }()

    func setup() {
        contentView.addSubview(imageView)
    }

    override public func layoutSubviews() {
        super.layoutSubviews()
        imageView.frame = bounds
    }
}
